package com.zxr.system.service.impl;

import com.zxr.common.core.text.Convert;
import com.zxr.common.utils.DateUtils;
import com.zxr.system.domain.OrderItems;
import com.zxr.system.domain.VO.ProductsVO;
import com.zxr.system.mapper.OrderItemsMapper;
import com.zxr.system.mapper.WxMapper;
import com.zxr.system.service.IOrderItemsService;
import com.zxr.system.service.WxService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单商品明细Service业务层处理
 * 
 * @author zxrproject
 * @date 2025-04-26
 */
@Service
public class WxServiceImpl implements WxService
{
    @Autowired
    private WxMapper wxMapper;

    /**
     * 查询商品列表
     */
    public List<ProductsVO> selectProductList(ProductsVO productsVO){
        return wxMapper.selectProductList(productsVO);
    }

    /**
     * 查询订单列表
     */
    public int selectOrderList(@Param("memberId")Long memberId){
        return wxMapper.selectOrderList(memberId);
    }

    /**
     * 查询订单详情
     */
    public int selectOrderInfo(@Param("orderId") Long orderId){
        return wxMapper.selectOrderInfo(orderId);
    }

    /**
     * 新增订单商品明细
     */
    public int insertOrderItems(OrderItems orderItems){
        return wxMapper.insertOrderItems(orderItems);
    }


    /**
     * 查询个人信息
     */
    public int selectMemberInfo(@Param("orderId")Long memberId){
        return wxMapper.selectMemberInfo(memberId);
    }
}
